KVCache

interface KVCache<K, V> : KeyValueRepo<K, V>

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend fun clear()
Link copied to clipboard
abstract suspend fun contains(key: K): Boolean
Link copied to clipboard
abstract suspend fun count(): Long
Link copied to clipboard
abstract suspend fun get(k: K): V?
Link copied to clipboard
abstract suspend fun keys(pagination: Pagination, reversed: Boolean = false): PaginationResult<K>
abstract suspend fun keys(    v: V,     pagination: Pagination,     reversed: Boolean = false): PaginationResult<K>
Link copied to clipboard
abstract suspend fun set(toSet: Map<K, V>)
Link copied to clipboard
abstract suspend fun unset(toUnset: List<K>)
Link copied to clipboard
open suspend override fun unsetWithValues(toUnset: List<V>)
Link copied to clipboard
abstract suspend fun values(pagination: Pagination, reversed: Boolean = false): PaginationResult<V>

Properties

Link copied to clipboard
abstract val onNewValue: Flow<Pair<K, V>>
Link copied to clipboard
abstract val onValueRemoved: Flow<K>

Inheritors

FullKVCache
Link copied to clipboard
SimpleKVCache
Link copied to clipboard